result=$(systemctl is-enabled crond)
if [ $result = enabled ]; then
    echo "pass"
else
    echo "fail"
fi